﻿using System;
using FreeSql.DataAnnotations;

namespace App.Model.Main
{
    /// <summary>
    /// 系统配置
    /// </summary>
    //[Table(Name = "sys_param")] 
    [Index("uk_{tablename}_Name", "Name", true)]
    public class SysParam : EntityBase<int>
    {
        /// <summary>
        /// 配置项标题
        /// </summary>
        [Column(StringLength = 200, IsNullable = false)]
        public string Title { get; set; }

        /// <summary>
        /// 配置名(唯一)
        /// </summary>
        [Column(StringLength = 50, IsNullable = false)]
        public string Name { get; set; }

        /// <summary>
        /// 配置值
        /// </summary>
        [Column(StringLength = -2, IsNullable = false)]
        public string Value { get; set; }

        /// <summary>
        /// 配置类型
        /// </summary> 
        public int Type { get; set; } = 0;

    }
}


